loop bipartition